<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
    

        <script>
         class Car {
    
         start = 13;
         total = 0;         
          price(n){

           if(n<3)
           {
               this.total = this.start;
           }
           else{
	          this.total = this.start + (n - 3) * 5
           }
              return this.total;

          }


      yd(flay)
      {
          return flay ? this.total + 10 : this.tortal;
      }

         }
         var car = new Car();



        </script>

</body>
</html>